﻿@{
    ViewBag.Title = "index";
}
<link href="~/Content/pageinit.css" rel="stylesheet" />
<div class="row">
    <div class="col-md-9">
        <div class="panel panel-default">
            <div class="panel-heading" id="TotalSale"></div>
            <div class="panel-body table-responsive">
                <table class="table table-condensed ">
                    <thead class="bg-success">
                        <tr><td>销售时间</td><td>销售商品</td><td>商品单价</td><td>销售数量</td><td>总价</td><td>销售人</td><td>销售对象</td><td>是否兑奖</td></tr>
                    </thead>
                    <tbody id="Sale_List"></tbody>
                </table>
                <hr />
                <!------page-------->
                <div class="page">
                    <div id="Pagination" class="meneame"></div>
                </div>
            </div>
        </div>

        <div class="panel panel-default" id="CreditSale">
            <div class="panel-heading">@{Html.RenderAction("CreditSaleSetup", "UserCtrl");}</div>
            <div class="panel-body" id="CreditSale_List">
                @{Html.RenderAction("CreditSale", "UserCtrl");}
            </div>
        </div>
        <div class="panel panel-default" id="CreditSale">
            <div class="panel-heading">费用明细</div>
            <div class="panel-body" id="Cost_List">
                @{Html.RenderAction("CostList", "Cost");}
            </div>
        </div>
        
    </div>
    <div class="col-md-3">

        <div class="panel panel-default">
            <div class="panel-heading">销售品名</div>
            <div class="panel-body">
                <div id="playersDiv"></div>
            </div>
        </div>
        <div class="panel panel-danger">
            <div class="panel-heading">费用报销</div>
            <div class="panel-body">
                @{Html.RenderAction("CostSubmit", "Cost");} 
            </div>
        </div>
        
        
    </div>
</div>
<script type="text/javascript">

    $("#playersDiv").load("Sale/SaleGoods");
    
  
</script>

<script type="text/javascript">

    $(function () {
        //alert("this is begin");
        //页面初始化去获取总页数
        Sale_List();

    })

</script>
<script type="text/javascript">
//同时刷新
    function oncomplete(request, status) {
        $("#CreditSale .panel-heading").load("UserCtrl/CreditSaleSetup");
    }
    function Ifok() { $("#Cost_List").load("Cost/CostList"); }
</script>

<script src="~/Scripts/pagination.js"></script>

<script src="~/Scripts/Sale_List.js"></script>




